<?php
$this->display('public/header.phtml', array(
    "title"    => (empty($category) ? "增加" : "编辑") . "分类",
    "styles"   => '',
    "crumbArr" => array(
        array("href" => "/admin/category/index/", "title" => "分类列表"),
        array("title" => (empty($category) ? "增加" : "编辑") . "分类"),
    ),
));
?>

<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->
        <form id="main-form" class="form-horizontal" method="post" role="form">

            <div id="category_name" class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right"> 分类名称 </label>
                <div class="col-xs-12 col-sm-5">
                    <span class="block input-icon input-icon-right">
                        <input name="category_name" type="text" placeholder="" value="" />
                    </span>
                </div>
            </div>

            <div id="category_id" class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right"> 所属父类 </label>
                <div class="col-xs-12 col-sm-5">
                    <span class="block input-icon input-icon-right">
                        <select name="parent_category_id" class="col-xs-10 col-sm-5">
                            <option value="0">请选择父类</option>
                            <?php foreach ($parentCategoryList as $value): ?>
                                <option value="<?php echo $value['category_id']; ?>"><?php echo $value['category_name']; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </span>
                </div>
            </div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit" id="submit-button-1">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        提 交 
                    </button>
                </div>
            </div>
        </form>

        <?php $this->display("public/form.phtml"); ?>
    </div><!-- /.col -->
</div><!-- /.row -->

<?php
$this->display("public/footer.phtml", array(
    "scripts" => ''
));
?>
<script type="text/javascript">document.write("");</script>
<script type="text/javascript">

</script>

<?php $this->display("public/edit_footer.phtml"); ?>
<?php $this->display("public/footer_body.phtml"); ?>